package com.party.mobile.web.dto.mall.output;

import com.party.core.model.mall.MallShowCategoryWithGoods;
import com.party.core.model.mall.MallShowSubjectTemplate;
import org.springframework.beans.BeanUtils;

import java.util.List;

/**
 * @Description:
 * @Author: yangshoukun
 * @Date: 2018/4/27 19:08
 */
public class MallShowSubjectTemplateOutput extends MallShowSubjectTemplate {
    // 发布者
    private String publisher;

    // 发布者头像
    private String publisherLogo;

    // 主题介绍
    private String templateIntroduction;

    private List<MallShowCategoryWithGoods> categories;

    public List<MallShowCategoryWithGoods> getCategories() {
        return categories;
    }

    public void setCategories(List<MallShowCategoryWithGoods> categories) {
        this.categories = categories;
    }

    public String getPublisher() {
        return publisher;
    }

    public void setPublisher(String publisher) {
        this.publisher = publisher;
    }

    public String getPublisherLogo() {
        return publisherLogo;
    }

    public void setPublisherLogo(String publisherLogo) {
        this.publisherLogo = publisherLogo;
    }

    public String getTemplateIntroduction() {
        return templateIntroduction;
    }

    public void setTemplateIntroduction(String templateIntroduction) {
        this.templateIntroduction = templateIntroduction;
    }

    public static MallShowSubjectTemplateOutput transform(MallShowSubjectTemplate mallShowSubjectTemplate) {
        MallShowSubjectTemplateOutput mallShowSubjectTemplateOutput = new MallShowSubjectTemplateOutput();
        BeanUtils.copyProperties(mallShowSubjectTemplate, mallShowSubjectTemplateOutput);
        return mallShowSubjectTemplateOutput;
    }
}
